﻿using System;
using System.Globalization;
using System.Web.UI.WebControls;
using Gammar.Price.Business;
using Gammar.Price.ObjectModel;
using Gammar.Price.Utility;

public partial class UserControls_SearchBar : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        KeyWord = Request["q"];
    }

    private string _keyWord;
    protected string KeyWord { get { return _keyWord; } set { _keyWord = value; } }

    protected void ButtonSearch_Click(object sender, EventArgs e)
    {
        string keyWord = this.Request["TextBoxSearchContent"];
        this.Response.Redirect(string.Format(CultureInfo.InvariantCulture, "~/Search.aspx?q={0}", keyWord));
    }
}
